From August, pupils will have to put their devices in magnetically sealed pouches throughout the school day, including during breaks and lunchtime.