Madeleine Albright, the first woman to serve as US secretary of state, has died of cancer at the age of 84.