Sleeping less than 6 hours a night in the middle of life increases the risk of dementia by 30%, the study shows