Dollar falls, yen hits 40-year low