A 20-year study of 1,540 older adults tied chronic loneliness to a 38% higher dementia risk, but not occasional loneliness. Here's how to stay connected.