Germany midfielder Mesut Ozil has announced his retirement from international football in an emotional statement, saying he feels "unwanted" by the national team.