Fred’s reports profit rise of 17% in Q2