Japan ends 300 years of trading rice futures