First thing to try is to boot with each stick of RAM individually, to make sure all 4 sticks are working. Add them back in, one at a time, in the correct slots, and see what happens. If you now have 32GB, problem solved. If not, Take out your CPU and check very carefully for bent pins. If the socket all looks OK, reseat the CPU, and check how much RAM shows up now. If you have an aftermarket heatsink, make sure you're not tightening it too far, that can cause this issue as well.
After you've tried the above, post back and let us know the results. Hope this helps