US stocks end higher as investors welcome 2nd quarter earnings reports