School pupils in Barnet, north London, will be banned from bringing phones into their classrooms from September.