Smartphone and vaping bans in schools have been hailed for making students “better behaved’’ and classrooms calmer.