Vibrational relaxation in hydrogen bonded systems: I. Theory