Trump says he prefers deal with Iran but warns military action remains an option