Unlinking your characters before combat starts should prevent them from moving to stay in formation.