Hydropower Generation in Renewable Energy Markets: a Singular Stochastic Control Problem