Judoka Chelsie Giles won Team GB's first medal of the Tokyo Olympics with bronze in the women's 52kg event.