Confectionery giant Mars has taken a minority stake in US snacks group Kind.