Data-driven discovery and probabilistic modelling of physical systems