Russian and Ukrainian prisoners of war have been returned to their respective nations in a swap deal, the Russian Defence Ministry says.