Generative Modelling with Tensor Train approximations of Hamilton--Jacobi--Bellman equations