Inflation accelerated in January, with the consumer price index rising 3% year over year, above economists' expectations.