People spending more time looking at a screen in bed are more likely to experience problems with their sleep.