SoftHebb: Bayesian inference in unsupervised Hebbian soft winner-take-all networks