Surfactants in foam stability: a phase-field model