A giant stream of metal-rich stars in the halo of the galaxy M31