Two British soldiers are under investigation after turning up to a Halloween party dressed in Nazi uniform just days before Remembrance Sunday.