Formulation and solution strategies for nonparametric nonlinear stochastic programmes with an application in finance