Intrinsic ferroelastic transition from a piezoelectric paraelastic phase