Loneliness was long thought to cause health conditions ranging from diabetes to cardiovascular disease, but new research paints a more nuanced picture