Ex-presidential adviser in court over sex assault claims