The battle to retake the Iraqi city of Mosul from jihadists could unleash a massive humanitarian crisis, the UN Refugee Agency warns.