Have just seen your post. The replys you have had thus far give good advise.
I still have problems with chords notably the F chord.
Practice little and often. Rather than spend 1, 2, or 3 hours at a time, I have found it easier to do 15 minute sessions, put the guitar down and come back to it a little later. You'll find what works best for you with trial and error
It takes time, but a thing called muscle memory will come into play. You will
suddenly find the chords become a lot easier as your fingers become more flexible. Stay with it and enjoy the journey.