Time delay between the optical and X-ray outbursts in the high-mass X-ray transient A0535+26/HDE245770