Orthogonal decomposition of symmetric functions defined on random permutations