Israel and Iran exchanged new attacks as President Donald Trump struggles to preserve a fragile ceasefire.