As Walmart faces a growing number of retail rivals in the Brazilian market, the retailer appears to be playing defense, investing about $316 million in its...