SAN FRANCISCO — Apple sold a record 13 million iPhones during the debut weekend of its latest handsets, as enthusiasts from Beijing to New York rushed to stores to be the first with the new devices. The results were in line with analysts’ expectations and boosted by sales in China, an increasingly critical region for Apple’s business.