Phase-resolved real-time ocean wave prediction with quantified uncertainty based on variational Bayesian machine learning