During a bad part of the pandemic, I did some research on loneliness. Here’s what I learned.