Diffuse soft X-ray emission in ROSAT observations of M31