Broken Mouse

My mouse stops working every 30 seconds. The pointer just stays stuck. Then it will work again after 10 seconds. I tried trying different USB ports, but it is the same story. Is this some hardware issue or software (drivers) issue?