Swedish fashion retailer H&M has vowed to improve its disposal of damaged garments, amid criticism for destroying and throwing out goods from a New York store.