Energy and housing costs were the major drivers of inflation, but consumers are starting to feel the impact of tariffs on basic goods.