Confidence in the global economic situation and outlook has fallen to a three-year low, according to the latest survey by German think tank Ifo.