CAIRO — Aid groups are racing to prepare for what they are predicting will be the largest humanitarian crisis in recent memory, with a million people expected to flee the northern Iraqi metropolis of Mosul once the country’s military and its foreign allies launch their offensive to seize the city from Islamic State militants. The planned…