A continuous model for microtubule dynamics with catastrophe, rescue and nucleation processes