President Cyril Ramaphosa tells grouping international law is key to solving world crises.