Spaghetti stir-fried with chilli and ham