“France and military allies said on Thursday they would leave Mali after almost a decade based there fighting Islamist insurgents around West Africa,