US President Donald Trump has told Gazans to hand over Israeli hostages or "you are dead".