The HELLAS2XMM survey XIII. Multi-component analysis of the spectral energy distribution of obscured AGN