Walmart höjde helårsförsäljningen och resultatprognoserna när shoppare söker erbjudanden mitt i inflationen.