Stochastic macroscopic analysis and modelling for traffic management