The rate of Consumer Prices Index (CPI) inflation rose to 3 in January from 2.5 in December, the Office for National Statistics (ONS) said.