About 3,000 Cuban migrants remain stranded in Costa Rica after Nicaragua refused to let them cross into its territory.