Measurement of B¯0→D(*)0K¯(*)0 branching fractions