A theoretical study of the water dimer interaction