The Ministry of Justice has said it is ‘leaving no stone unturned’ to make British prisons safe following the ‘horrible act of violence’