A Bayesian Dynamical System Model of Joint Action and Interpersonal Coordination