Measurement of time-dependent CP asymmetries in B 0 →D (∗)± ∓ and B 0 →D ± ∓ decays