US stocks edge lower as market rally pauses after 5 straight weeks of gains