The hot stellar component in elliptical galaxies and spiral bulges. I - The far-ultraviolet spectrum of the bulge of M31