Coffee climbed to its highest in nearly 50 years on Wednesday as concerns over a global supply shortage added to market uncertainty over the impact of incoming EU laws on deforestation.