Grammar school headmaster investigated for using N-word while telling off pupil