African National Congress (ANC) delegates celebrated after Cyril Ramaphosa was elected as the party's new president.