Kepier Academy told students they needed to meet targets on attendance and behaviour to go to the school’s prom