A stochastic model for time changes in a binary dyadic relation, with application to group dynamics