Husband of UK royal took own life after ‘adverse effects of medication’