A functional central limit theorem for the Ewens sampling formula