Scottish Labour distances itself from candidate who made Prince Philip comments