The UK has abandoned projects worth tens of millions of pounds that were meant to help protect Congo rainforests and support local people.