A phase transition problem with delay