Support Recovery with Stochastic Gates: Theory and Application for Linear Models