Consistent Multigroup Low-Rank Approximation