President Cyril Ramaphosa pushed back on Mr. Trump’s allegations.