Emma Raducanu retired in the third set of her Korea Open semi-final against Latvian top seed Jelena Ostapenko.