Higher transport costs sent inflation up to 2.5% in July in the first increase since November.