US apparel maker Hampshire Group has swung to a second-quarter loss despite posting a significant increase in net sales.