The president of the United Arab Emirates has accepted an invitation to visit Iran, the WAM state news agency says.