Random effects mixture models for clustering time series