Tens of thousands of South Africans have headed to the polls to vote in the country's fifth democratic election since the end of apartheid.