I did eventually manage to regain control by placing the mouse on another surface.
I was using an optical wireless mouse on an old desk with a semi gloss finish.
I guessed that might be the problem, so I started using it on a piece of flat paper with some printing on it.
Since then the problem has stopped.