Gabriele Gravina has resigned as the head of Italy's football association (FIGC) following their failure to qualify for a third consecutive World Cup.