Inflation rose 2.4% in January, lower than many experts anticipated, as electricity costs increased more than 6% from last year.