Water effects on the interaction and friction between polar surfaces