The ROSAT-ESO Flux-Limited X-ray (REFLEX) galaxy cluster survey - II. The spatial correlation function