Bayesian treatment of model uncertainty under endogeneity