Man who ‘made ex-partner’s life a misery’ guilty of attempted murder