The economy is forecast to contract next year due to the cost-of-living crisis.