Permutation invariant tensor models and partition algebras