Tree loss in the Amazon rainforest has declined for the fourth consecutive year, a boost for the country hosting COP30.