How an 'outstanding' school humiliated pupils with harsh and harmful discipline