Cyril Ramaphosa helps the party survive a voter revolt and big drop in voter turnout