When you have a set the computer will automatically bring up an option as to whether or not you want to cash in. When you have 5 cards you must cash in.
I'll just add that the option to cash cards will only pop up either at the beginning of your turn (before you deploy men) or mid-turn if you eliminate another player and receive their cards (and your cards plus theirs equals 5 or more cards).