Hedge funds are becoming more cautious and moving away from risky investments, according to data from Goldman Sachs (GS).