Pupils told to stay home for rest of term after surge in Cov