A swarm of at least a dozen earthquakes reaching up to magnitude 3.9 rattled San Ramon near San Francisco, the U.S. Geological Survey reports.