US stocks edged higher as hopes for US-Iran peace talks and a strong performance by Intel boosted market sentiment.