Surfer rescued from rocks in San Francisco