Shoppers continue to open their pocketbooks, boosting retailers like Walmart, even as inflation jumps to its highest level in three years.