A dimensionally reduced finite mixture model for multilevel data