York Racecourse hosted the Queen, raised more than £560,000 for charity and saw a record number of horses running in 2024.