Bayesian method for frequency detection in paleoclimatic proxy data