A new study has said that climate change will affect the global harvest of tomatoes in years to come.