Wal-Mart reported an 8 percent decline in fourth-quarter earnings as the retailer prunes its global footprint