Dogs can associate words with objects, study finds