How to invest without demat account

How can one invest in mutual funds or IPOs without a Demat account?