Input costs have hit half-year profits at Mexico-based bakery giant Grupo Bimbo.