The relationship between executive functions and capacity to consent to treatment in acute psychiatric hospitalization