Prolonged delays in local authority planning enforcement are leaving unlawful developments in place and undermining public trust, watchdog says.