A man accused of murdering his parents with a geologist’s pick hammer was mentally impaired at the time, the WA Supreme Court is told.