Move all cards to the single foundation. You can only remove "near-pairs" of cards 1 rank away from each other. To select a pair tap the first card, next tap the second card. Also you can drag and drop a card to another one.

This image is a schematic representation, not a screenshot from the game. Screenshots are platform specific. You can see screenshots in the store.