Brazil ‘to write off’ almost $900m of African debt