Dobbies customers and staff have raised more than £200,000 in a charity partnership to support dementia research.