Sounds like 1 of 2 things: Software or hardware. (duh!)
Try removing and reinstalling the USB drivers and see if htat helps.
If not, try a different cable. Since you said it happens on any port, but erraticaly, (am I correct?) it's not that one port, so cable would be the next guess.