If the throttle cable seems to be working correctly the problem could be with the Idle Air Control. It sits on the top of the throttle body with a plug going to it. They can be cleaned but that is unlikely to be the problem with your almost new car and it will be a back to the dealer job for warranty work I expect.