A singular stochastic control problem for hydropower generation in renewable energy markets