Retired consultant is struck off over treatment of young transgender patients