The UK government has confirmed plans to sell off up to half of its state-owned forests to private companies.