Cadbury and Oreo owner Mondelez International has reported lower half-year profits as it ups investment in emerging markets.