Maldives joined Bahrain, Egypt, Saudi Arabia and the United Arab Emirates in cutting diplomatic ties with Qatar.