MPs have voted to impeach President Andry Rajoelina, who has reportedly fled the country following anti-government protests.