A Novel Dielectric Anomaly in Cuprates and Nickelates: Signature of an Electronic Glassy State