Try to reboot into Safe mode and see if you get the same issue or not. If you don't then it's a software issue (corrupted driver files/settings) otherwise it's a hardware issue (faulting USB port, controller, etc). Try to change the USB port where you connect the mouse or switch from USB port into PS/2 port (the older format) to see if that makes any difference.