Smarties-to-Cheerios owner Nestle has announced a "global commitment" to cut the sugar in its food by 5% by 2020.