Trees, wreath products and finite Gelfand pairs