McCarthy announced on Wednesday that he will retire from Congress at the end of this year, a few months after he was forced out of his post as House Speaker after a push by members of his own party.