Measurements of Mean Lifetime and Branching Fractions of B Hadrons Decaying To J/psi