Risk Bounds for Learning Multiple Components with Permutation-Invariant Losses