Effectiveness of a community pharmacist intervention in diabetes care: a randomized controlled trial