US stocks finish mixed; Nasdaq’s decline longest in a month