The Defence secretary has resigned citing concerns about the Government's defence investment strategy.