Gotabaya Rajapaksa has arrived in the Maldives amid mass protests over Sri Lanka's economic crisis.