Dynamic Bayesian Learning And Optimization In Portfolio Choice Models