Russia and Ukraine have each released 185 prisoners in a major exchange, which Russia says was mediated by the UAE.