Teenagers who while away the hours on an electronic device — whether it's a computer, cell phone, tablet or TV — tend to have more problems with sleeping at night, a new study finds.