Rising raw material costs during the second quarter have weighed on first-half profits at Mexican bakery and confectionery group Grupo Bimbo.