US clothing company HanesBrands saw third-quarter net income rise on the back of increasing sales and improving margins.