Eating more fruit and drinking less sugary drinks has been linked in a new study with a reduced likelihood of developing anxiety or depression.