The former One Direction star's medical cause of death has been confirmed in a UK inquest opening