The Bayesian logic of frequency-based conjunction fallacies