Bayesian Detection of Causal Rare Variants under Posterior Consistency