H&M is finally digging itself out from under a vast pile of unsold clothes