Association Between Mobile Health App Engagement and Weight Loss and Glycemic Control in Adults With Type 2 Diabetes and Prediabetes (D’LITE Study): Prospective Cohort Study