Any hairball remedy from the pet store will work. Some people like to use plain old Vaseline (petroleum jelly). A little dad of Vaseline on the paw will get most cats to lick it off.
My vet prefers natural measures: a little bit of olive oil added to the wet food, or the butter, and since my cats love it, I give them a bit of butter once a week