Less than a week after lifting the World Cup with Germany, captain Philipp Lahm has announced his retirement from international football.