PDE methods for stochastic dynamic optimisation: an application to wind power generation with energy storage