China set its daily yuan reference rate at the weakest level since 2008 after increasing political tensions with the U.S. drove the currency to a seven-month low.