Constraints on the Galactic Dark Matter signal from the Fermi-LAT measurement of the diffuse gamma-ray emission