A teacher who banned mobile phones at a public school has been announced as the next headmaster of Eton College.