A study on cellphone bans used data from about 4,600 schools and is the first nationally representative look at such bans.