A teacher has been banned from the profession for at least two years after he ran his fingers through the hair of pupils and messaged one on Facebook