Exclusive: Research uncovers programme to make centuries-old records legible to detect people’s ancestry