Steve Smith's celebrations after Australia retained the Ashes could motivate England in the fifth Test at the Oval, according to James Anderson.