Nonlinear terahertz control of the lead halide perovskite lattice