French filmmaker Julia Ducournau has become only the second female director to win the Cannes Film Festival's top prize.