Victims of the high income “tax trap” have lost out on up to £38,000 due to frozen thresholds, analysis shows.