Optical novae: the major class of supersoft X-ray sources in M 31