Government troops retreated to the outskirts of Misrata under rebel fire today and the opposition claimed victory after officials in Tripoli decided to pull back forces loyal to Muammar Gaddafi following nearly two months of laying siege to the western city.