DAKAR, Senegal — France and its security partners will withdraw all troops from Mali, European and regional leaders announced in a joint statement Thursday, after nearly a decade of fighting an extremist threat that has surged in recent years and as relations between the West African nation and its former colonial power collapse.