Boss of government budget watchdog resigns over accidental leak