Cases of diabetes in Wales are rising, with patients in certain communities disproportionately affected.