Iraqi forces have taken control of the last major road out of west Mosul, isolating Islamic State militants and preventing them from fleeing the city.