Influence of prior transient ischaemic attack on stroke prognosis