The former New York City mayor said he did not believe he could win the presidency if he mounted a campaign.