US retail giant Wal-Mart has lowered its full-year guidance due to investments in e-commerce and headwinds from higher health-care costs than previously estimated.