The Islamic State group in Iraq has issued an ultimatum to Christians and Muslim minorities to leave Mosul.