Dynamics of a diffusive delayed competition and cooperation system