Mechanics of nonlinear random wave groups interacting with a vertical wall