Chinese efforts to persuade North Korea to rein in its nuclear program have failed, President Donald Trump said.