A 54-year-old man has been found unfit to plead over allegations he attempted to murder another man in Wolverhampton.