Could be the cable, or the instrument itself.
If the cable, you may buy a little more time by carefully removing it, pull out the cable inner, flush the outer with carb cleaner and then lube up the cable with lithium grease. Do not lube the last 6" of the cable leadign to the instrument, you do not want grease in there believe me.
OTOH, your symptoms could equally be the sign of impending failure of the speedo itself. I think my wife bought one of the last new ones on the planet quite a number of years ago and in addition to R65 owners seeking replacements, many R65 speedos have been gathered up by R80GS owners. About the only type that seems to be readily available are the 80mph USA models that nobody wanted when new and as a result many were stored and are now on the market. I have one of these purely to satisfy my State's registration requirements, I intend to use a GPS as my main source of velocity information. In fact, a good bicycle computer could be adapted to provide perfectly adequate service as both a speedo and odometer.