From Petrarch to Austen to Nietzsche, literature has answers – in poetry, novels and non-fiction – for the questions of the lonely lover.