Paul Scholes has sensationally resigned as the manager of Oldham Athletic.