Iran and the United States held hours of indirect negotiations over Tehran’s nuclear program but walked away without a deal.