Johanna Konta’s run in Nottingham ended at the last hurdle as she fell to Ashleigh Barty in the final.