Ratios of bottom meson branching fractions involving J/ψ mesons and determination of b quark fragmentation fractions