Socio-cognitive factors associated with non-adherence to medication after hospital discharge