Measurement of relative branching fractions of B decays to Psi(2S) and J/Psi mesons