A school has been forced to shut after a water outage meant staff were unable to “maintain appropriate hygiene and welfare arrangements”.