The findings might shed light on the link between loneliness and mental health conditions such as anxiety disorders, researchers say.