Edinburgh pupils to lock up their mobiles