In-Context Learning through the Bayesian Prism