Fighters capture districts in neighbouring provinces after being ousted from city's centre by coalition-backed troops.