World stocks post worst quarter in 3 years