You can keep the cat in the house. For prayer, use a prayer mat that is clean and has no cat hair. And just make sure there is no cat hair on your clothes when praying. You can use a lint roller or remover to quickly remove any cat hair. As long as you try to observe that, you can keep the cat.