MOSCOW — Prime Minister Dmitri A. Medvedev said Wednesday that he believed that three female punk rockers jailed for a profane stunt in Moscow’s main Russian Orthodox cathedral should be released rather than serve out their two-year sentences, weighing in on a case that has drawn widespread condemnation in the West.