British author Samantha Harvey has become the first woman since 2019 to win the Booker Prize.