S Korea court slashes ex-president’s jail term by 10 years