School calls time on pupils’ smart devices