Beaded elastic rods to simulate the diffusive dynamics of biofilament deformations