Kirchhoff’s problem for nonlinearly elastic rods