A secondary school has been unable to use its new £700k sports pitch - because the noise from referees' whistles upsets the neighbours.