Measurement of the branching fraction and time-dependent CP asymmetry in the decay B0→D*+D*-Ks0