Two Fed officials depart amid scrutiny over investment trades