US inflation rose to 2.6% in October from a year earlier, ticking up from the slowest rate in more than three years in September.