Unwanted bone rotation around cursor
EDIT:
I found a solution to this myself when I compared my older file with my newer file.

I unchecked the "manipulate around centre points only" box (the one with the three small dots and the arrows in the image below), then clicked on the menu to the left of that, and changed the pivot point from "3d cursor" to "median point". This worked perfectly to solve this problem!