Plants 'can recognise themselves'