A convergent scheme for the Bayesian filtering problem based on the Fokker--Planck equation and deep splitting