Constraints on cosmic-ray propagation models from a global bayesian analysis