Mean field networks that learn to discriminate temporally distorted strings