Country music legend Dolly Parton has died at 80, her family has confirmed, bringing an end to a decades-long career that made her a global music icon.