Most time for beginners it's caused by holding the guitar where they can see where they place there fingers..
Try rolling the top of your guitar away from your body and try the neck at different positions.
Also try to relax your hands. Tight muscle fight each other..
Good Luck and keep pickin'
Gordon