Asian stocks hit record quarterly gains as yen hits 40-year low