The US president said negotiations with Iran could resume in the coming days after earlier talks failed to result in a deal.