Fidel Castro, the Cuban despot who famously proclaimed after his arrest in a failed coup attempt that history would absolve him, has died aged 90.