A method of hp-adaptation for Residual Distribution schemes