Dina Boluarte becomes the country’s first female leader after ex-president Pedro Castillo is detained and accused of rebellion.