Catalytic and bulk solvent effects on proton transfer: Formamide as a case study