School slammed for making pupils wear blazers during sweltering heatwave