A 70-year-old man has been charged over what police allege was an unprovoked attack on an elderly man south of Perth.