Quantum and thermal melting of stripe forming systems with competing long-range interactions