"Immediate action" is being taken after blueprints of jail layouts were shared online, the Ministry of Justice (MoJ) has said.