Diets rich in plant-based foods, and fewer ultra-processed foods, is associated with healthy aging, a study has found.