Party which has governed since end of apartheid slumps to 40 per cent in poll with 98 per cent of votes counted