Primark has become the latest retailer to commit to the elimination of hazardous chemicals from its supply chain after a Greenpeace campaign.