Looks like Trump waited to announce until right after the hack took place in 2015. They got all the strategic info needed to cheat to win and enough emails to drip leak for weeks.
"The leak includes emails from seven key DNC staff members, and date from January 2015 to May 2016."
2016 Democratic National Committee email leak