A woman ended up in hospital after accidentally using a can of builder's foam instead of hair mousse.