Measurement of time-dependent CP asymmetries in B0 ---> D(*)D decays