Prioritising risk pathways of complex human diseases based on functional profiling