Reduced rank regression models with latent variables in Bayesian functional data analysis