A theory of magneto-elastic nanorods obtained through rigorous dimension reduction