Inflation bucked the rising trend for the second consecutive month in October, helped by the cooling off of grocery prices.