Sydafrikas president Cyril Ramaphosa sade att nästa års lokalval kommer att bli ett "lackmustest" för hans parti African National Congress.