Edinburgh Academy pupils suffered decades of 'dreadful abuse'