Branching fraction and charge asymmetry measurements in B -> J/psi pi pi decays