Teachers use metal detectors to scan pupils in strict mobile ban