US stocks end lower as investors brace for earnings reports