Loneliness can afflict anyone at any age. But when you’re older, fighting it off requires a bold strategy