How can I stop buying things I don't need to impress people?

Addiction. It will need a lot of self-restraint and determination to correct a habit or addiction. Finding and knowing your triggers should be the first step. Guidance by a therapist will also be neccassary.