On affine actions of Lie groups