A new study suggests school cellphone bans can lead to better grades and attendance but not without early challenges.