Children's wear retailer Carter's Inc has seen its second-quarter profit fall by more than one-third as higher cotton prices offset a rise in sales across its business.