Can I protect my own deposit instead of giving it to a landlord or agent?

No, the law is clear and states the deposit must be handed to the landlord or agent who has to protect it within 30 days of receiving the money.