Consumer prices climb on rising energy costs