China, which is increasingly flexing its muscles around the world, is one of the biggest threats to Britain and its allies, and a “miscalculation” by Beijing could lead to war, the head of the U.K.’s foreign intelligence agency said on Tuesday.