Cyril Ramaphosa has been sworn in as the new president of South Africa, succeeding Jacob Zuma, at the country's parliament.