US retail giant Wal-Mart is to invest CNY100m (US$16.3m) over three years to improve food safety in China.