Mesut Ozil says he is quitting the German national football team, citing "racism" in the criticism of him after the side's World Cup debacle.