Japan intervenes to prop up the yen for first time in 24 years