Cheating headteacher ‘covered up 28,000 pupil absences over five years’