The role of water and proton-transfer processes in hydrogen-bonded chains with large proton polarizability