Decades of neglect and lack of investment in education have left UK school buildings a danger to life and limb.