Suicide bombings claimed by the Islamic State group kill at least 27 people in Baghdad, officials say, as Iraqi forces fight to retake the last jihadist-held areas in Mosul.