Bayesian hierarchical duration model for repeated events: an application to behavioral observations