Branching fraction measurement of B0 ---> D(*)+ pi-, B- ---> D(*)0 pi- and isospin analysis of anti-B ---> D(*) pi decays