US stocks edge lower as investors weigh earnings, inflation