More than half of headteachers across the UK report that significant portions of their schools are either unusable or unfit for purpose, a new survey has revealed.