A Bayesian approach to retrospective identification of change-points