A Bayesian Approach to Harnessing the Power of LLMs in Authorship Attribution