Risk Factors and Outcomes of Heart Failure Following First-Episode of Acute Myocardial Infarction—A Case Series Study of 161,384 Cases