Punters were left counting their winnings after the Queen arrived wearing a pink hat, a colour backed by many of the racegoers.