Pulse ham, onion, and garlic in a food processor until finely chopped; transfer to a bowl. Place mayonnaise, cream cheese, relish, and mustard in food processor and process until smooth. Stir cream cheese mixture and ham mixture together in a bowl.