The cost of coffee has hovered near record highs on the futures market after droughts in top-producing Brazil and Vietnam.