UK inflation fell slightly to 3.1% in September, although transport costs rose, official figures show.