Nepali authorities have rescued the country's last known "dancing bears", officials say, ending the medieval tradition of abuse of the beasts for entertainment.