Switching the conductance of a molecular junction using a proton transfer reaction