The big-box retailer Target is at risk of slower sales as consumers spend less on discretionary merchandise.