Computer stops reconizing mouse

This started about a week ago, my computer will randomly stop recognize my mouse, and the only way so far to fix the problem is to force a shutdown. I've tried it in every USB port in my computer, and I've tried using a different mouse.

All my drivers are up to date, and there are no viruses. malware, spybots etc... (I have run full scans using Avast and Malwarebytes).

I'm completely perplexed and can't figure out what is happening. I'm using a wired Logitech G400 and I tried a different mouse and the problem persisted.

Though, the problem seems to be becoming more and more sporadic. Sometimes it freezes for a moment and then comes back (making the noise that happens when you plug a device in), and occasionally switching USB ports works.

It happens more frequently when I'm in a game, any game really. Dishonored, Mount and Blade: Warband. Silent Hunter IV, Minecraft, etc...

Some info on my setup.

 

Windows 7 Ultimate 32 Bit (When I get some more money, I'll be upgrading to 64 bit, don't you worry, being 16 with no job makes money pretty tight and all).

8 Gigs of RAM

XFX Radeon HD 7850 GPU

Intel i5-3570k CPU

Gigabyte GA-Z77X-UD3H LGA Motherboard

Logitech G400 Mouse

 

If you have a ps2 port on your computer try using that.