The rules around donations to political parties need strengthening to “protect the electoral system from foreign interference”, the head of the elections watchdog has said.