Weakly nonlinear theory for dispersive waves generated by moving seabed deformation