Social media has made it easier for people to stay connected, but it can also increase feelings of loneliness.