Inflation slows to 2.7% in July