Rayleigh waves in locally resonant metamaterials