S. Korea president’s former aide denies ‘tryst’ in court