Spaghetti with Ham and Cherry Tomatoes