Study finds wisdom combats loneliness