JK Rowling has accused transgender activists of “rewriting history” by downgrading the abuse she has suffered for her views.