Andrew Hastie quits shadow cabinet after refusing to be ‘silent’ on immigration