Cottingham High School in East Yorkshire said it had to lock the toilets for cleaning and repairs, but parents have claimed their children understood they were closed during lessons