I would not use spray foam for that job. It is not really going to do what you want. Ideally you would mix up some latex for making moulds. I would expect it to be available at large craft stores. My second choice would be silicone.