Ghost dark energy in Rastall theory