Clarifying the Hubble constant tension with a Bayesian hierarchical model of the local distance ladder