Study of dielectric anomalies in Cu(HCOO)2 · 4H2O and Cu(HCOO)2 · 4D2O around their antiferroelectric phase transitions using pseudospin model