Mechanistic basis of branch-site selection in filamentous bacteria