Dollar rises as yen hits 40-year low