A new study has linked ultra-processed foods to cognitive decline among adults.