Bayesian inference in error-in-variables models