Ramaphosa also questioned whether the US and Israeli strikes on Iran were permitted under international law