Bayesian hierarchical nonparametric inference for change-point problems