What am I?

When you buy me I am costly, but the only use I have is hanging only. What am I?