Action Matching: Learning Stochastic Dynamics from Samples