Evaluating the effect of knowledge, attitude and practice on self-management in patients with type 2 diabetes