U.S. stocks close higher as investors buy dip