Atrial fibrillation and heart failure treatment