Lily James Says She Was a 'Wreck' After Living in Character as Pamela Anderson While Filming