UK clothing retailer Next has recorded an increase in first-half pre-tax profit, driven by online sales growth.