Ed Sheeran says befriending former party animal Robbie Williams and bonding over their drink and drugs demons made them both feel “less isolated”.