As the "Corsair" suggested, today once again I ran Memtest86. Both RAM sticks completed the test successfully, without any errors. I also put my friend's 256Mb RAM stick to my PC and after some time it hanged. So, I decided that presumably the problem is in the motherboard or PSU...