Apparel group Oxford Industries returned to profit in its second quarter, despite a sales decline caused by the company's exit of certain businesses.