A modified weighted log-rank test for confirmatory trials with a high proportion of treatment switching