South Africa hits first recession in 17 years