Swedish fast fashion retailer H&M has hailed its transformation work as the group reported a double-digit rise in second-quarter sales.