Tim Paine resigns from Australian captaincy following sexting scandal