The Prime Minister has pledged £10 million to help protect and restore the Amazon as Brazil struggled to contain thousands of fires that have devastated vast tracts of the rainforest.