Japan and the United Arab Emirates have signed a nuclear cooperation agreement during a visit by Prime Minister Shinzo Abe to the Persian Gulf country.