A teacher has been barred from the profession indefinitely after a misconduct hearing found he touched a pupil in a sexual manner.