Screen time in bed is linked to poor quality sleep, a new study shows — here’s why, plus how to break the habit.