Algeria has cut diplomatic ties with the United Arab Emirates following years of tension between the two countries.