Spanish police have arrested a Russian programmer following US allegations of large-scale hacking.