Effect of secondary flows on dispersion in finite-length channels at high Peclet numbers