Try hold formation (i think its that button).

Many times my men go back to the position i put them in.
example:
Archers are behind my inf. and shooting when the enemy get to close they skirmish back. Then when my inf are pushing forward, the archers go back to the spot where i set them up.

It doesnt help all the time, but you can try it