Modelling chase-and-run migration in heterogeneous populations