Hyperspherical wave functions with orthogonal and permutational symmetry