Saudi Arabia and the UAE each pledged to invest over $10 billion in South Africa's economy during visits from South African President Cyril Ramaphosa to Riyadh and Abu Dhabi.