Measurements of the branching fraction and time-dependent CP asymmetries of B0 ---> J/psi pi0 decays