More and more families and schools are setting clear boundaries to counter the constant distraction of social media.