Goalkeeper Manuel Neuer has announced on social media that he is ending his German national team career.