Widespread loneliness has become the scourge of the modern age. Could increasingly realistic artificial intelligence offer a solution?