Cohomology of D-complex manifolds