Walmart, the giant retailer, said Tuesday that it had attracted more customers during the crucial holiday shopping season but that its efforts had come at a cost. Sales at U.S. stores open at least a year rose 1.8 percent during the fourth quarter, compared with a 1.3 percent increase many analysts were expecting, Walmart reported .