Ward identities and sum rules for composite systems described in the dispersion relation technique: The deuteron as a composite two-nucleon system