Afghan officials say they have regained control of key areas of the northern city of Kunduz from the Taliban.