Donald Trump has restated claims that the US will take control of Gaza and rebuild it, as the Israel-Hamas ceasefire also hung by a thread amid a war of words between the two sides.