On an abstract weakly hyperbolic equation modelling the nonlinear vibrating string