Unfortunately freezing problems can have numerous causes which makes a simple solution generally impossible.
HERE is a huge thread on the issue with various ideas such as making sure your BIOS is up to date and memory settings are correct, trying a new anti-virus software, running memory tests to verify your RAM is OK, trying a new motherboard, etc.
But as I said, since this sounds liker new equipment, the easiest thing would be to take it back and try another unit, even the same make/model, while you still can as it could easily be a parts defect.