Higher temperatures mean higher food and other prices. A new study links climate shocks to inflation