Nasdaq and S&P 500 reach record highs on optimism over U.S.-Iran peace talks