It will come at time, just be patient and keep practicing.
I did some lessons with a teacher who told me: "Just keep the rhythm going, the chords will come", meaning if you keep practicing it will come.
What helped me as an exercise was just to make a cord, strum it slowly and than play it string by string, just to hear if the fingering is right.
I do this as a warm up exercise with al the 10 basic chords or when I'm watching tv.
Hang in there, it will come but it takes some time.