A two-component model for hadron production in high-energy pp collisions