Ascena Retail Group recorded a steep decline in second-quarter profit, with falling sales at its Justice brand offsetting growth elsewhere in the business.