Tablets and computers have become crucial school supplies for many students. But the same devices children use to read text, write essays, solve math problems or research history projects can also offer distractions in the form of games, social media and web browsing.