President Cyril Ramaphosa told delegates that all G20 members except the US had signed the declaration