Anyone can properly learn how to play the piano, it simply takes lots of practice and perseverance.
As a beginner it can be frustrating, but it takes time and patience for anyone to become a good player. Practice is the most important ingredient!
There are an endless amount of websites online which are there to aid you. Many include free lessons, forums, and posts answering your questions. It also helps to begin with songs you're familiar with and enjoy.
Make sure you're seated correctly with your bench at the right height and distance from the piano. Elbows should be at a 90 degree angle. No slouching! Slouching will create back pain and fatigue, shortening your playing time, so remember to keep a straight back. Make sure your wrists are level with the piano, not too high or leaning down onto it. You should be playing with the tips of your fingers, not the pads. This means it's very hard to play properly without short nails, so you may need to trim a little!
If you wish to learn quickly you should be practicing daily for a half an hour at least. This includes learning the notes and chords, proper finger technique, accurate playing tempo, and many more details. Practice really does make perfect. When you practice, aim for quality, if your practice is sloppy then that is how your piece will sound. This will result in bad playing habits, which you will regret later. It's also a good idea to practice a seperate aspect at a time to improve them. If your left hand is slower than your right, play only the left hand of that peice till you perfect it.
By practicing your scales, and increasing the speed as you improve, this will help to strengthen your fingers allowing for more speed and acuracy in the songs you play.
Frustration is extremely normal in learning an instrument. The three measures you've been trying to learn and memorize for a week will begin to sound clean and precise with more practice.
If you play along with the song you're trying to learn, this can help you learn the proper speed and sound of the piece. It's also simple to rewind and repeat small pieces over that need practice.
Instead of practicing for long sessions only once in a while, try to make it more frequent and short. This way, your brain will memorize patterns and chords much faster.
If you know someone who has experience in piano playing, try to meet every week to watch and learn how they play.
Make sure you're not playing the same 3 songs constantly, in turn practicing no new playing techniques. Also try switching up the genre of pieces, playing different rhythms and tempos to get attuned to all types of music.