Attempted rapist clubs woman with hammer