New technology such as smartphones and tablets could be affecting how much sleep people get, a survey suggests.