US intelligence indicates that President Xi Jinping’s sweeping military purge came after it emerged that widespread corruption undermined his efforts to modernize the armed forces and raised questions about China’s ability to fight a war, according to people familiar with the assessments.