Prognosis and treatment of cardiomyopathy and myocarditis