Text this: Interpretable inference of collective models from trajectory data with two-stage rule learning