Cutting back on consumption of ultra-processed food could have a notable impact on your mental health, a new study has found.