A massive new study has revealed the impact of the drugs on dementia