South Africa's ANC won 31% in municipal elections with 99% of votes counted, trailing the DA's 25% and Zuma's MK party at 10%.