Study of resonances in exclusive B decays to D̅ (*)D(*)K