Exposure to light during sleep is associated with an increased risk of cardiovascular disease, according to a new study.