Disentangling group and link persistence in dynamic stochastic block models