US rapper Kendrick Lamar has dedicated his record of the year award to his hometown Los Angeles after the city was devastated by wildfires.