Infinitely many solutions for a fourth-order elastic beam equation