U.S. stocks ended higher on Monday on investor hopes for a strong earnings season, but IBM's disappointing results limited gains.