Loneliness has been increasingly linked to heart attacks, strokes and other poor health outcomes, and now a new study shows it also raises the risk of dementia and cognitive impairment.