The number of people whose lives or property are at risk from wildfires has surged by almost 40% in just two decades, according to new research.