Teacher who shared personal texts with pupils banned