Caroline Marks from the USA won the women's surfing gold medal by narrowly defeating Brazil's Tatiana Weston-Webb with a score of 10.50 to 10.33.