Official guidance to headteachers states vape use is "inappropriate" at school even if a pupil has turned 18.