The three West African states have severed military ties with France, whose troops were previously involved in fighting insurgencies linked to Al-Qaeda and Islamic State.