EXCLUSIVE: Almost a quarter of teachers say their buildings are in such a poor state they lead to an unsafe environment for pupils and staff