Chloe Kim has fallen short in her bid to become the first Olympic snowboarder to win three consecutive gold medals.