The surge in shark attacks over the last decade could be driven by climate change, according to scientists.