Frequency dependence of the surface resistance in high-temperature superconductors