Discovering group dynamics in synchronous time series via hierarchical recurrent switching-state models