Structural phase transition and dielectric anisotropy properties of a lead-free organic–inorganic hybrid