Switchable friction enabled by nanoscale self-assembly on graphene