Donald Trump and Republican leaders have scrapped their bill to repeal "Obamacare" in a humiliating failure for the US president.