EXOSAT observations of clusters of galaxies – II. X-ray to optical correlations