Realising stratified psychiatry using multidimensional signatures and trajectories