Germany's World Cup-winning midfielder Mesut Ozil announced his retirement from football at the age of 34 on Wednesday.