St. Louis Cardinals' Albert Pujols says he almost retired after struggles in June