Thousands of Iraqis are fleeing to Syria in order to escape the fighting around the northern city of Mosul, where a wide-scale offensive is under way to drive out Islamic State, according to an aid group.