Former Maldives President Mohamed Nasheed allowed foreign trip