Impact of interpersonal relationships and acquired capability for suicide on suicide attempts: a cross-sectional study