Stocks struggle to a mixed close

Stocks struggled to a mixed close after a slide in energy and consumer goods companies outweighed gains elsewhere in the market.