A finite strain beam formulation. The three-dimensional dynamic problem. Part I