Police are facing rising workloads and more complex types of crime, but investment has fallen behind, according to the government's spending watchdog.