China confirmed that it was holding a U.K. consulate employee in Hong Kong on allegations of violating local law as protesters planned to rally for his release outside the diplomatic mission.