Donald Trump says he was aware of recent attacks on Iran but insists the United States were not involved militarily.