if you simply move your fleet along the escape route, your ships will fire at any enemy within range.
some ships will be better at this than others, so experiment with your fleet composition to find what works best.
And some capital ships can disable ships from jumping away
You could also use jump degrigation buildings in your wells to slow the fleets down.