Walmart and other big U.S. retailers have warned that consumers were being cautious, even if personal balance sheets seemed healthy.