United States personnel are being "moved out" of parts of the Middle East amid escalating tensions with Israel and Iran, President Donald Trump confirmed on Wednesday.