Observational constraints on particle production during inflation