Obtuse cones in Hilbert spaces and applications to partial differential equations