The European Union has been ridiculed for suggesting that coffee is "harmful to humans".