Kurdish forces abandon long-held lands to Iraqi army and Shia fighters