A new multivariate transform and the distribution of a random functional of a Ferguson–Dirichlet process