The consumer price index eased in January but inflation was still elevated for many consumer necessities, economists said.