Government forces in Iraq have taken full control of the contested city of Kirkuk without any opposition from Kurdish fighters who had controlled it.