Trump confirmed Perry is resigning, and said that his replacement will be announced ‘very shortly’