Local stability results for the elastic beam equation