Negative static permittivity and violation of Kramers-Kronig relations in quasi-two-dimensional crystals