Psychiatric beds and resources : factors influencing bed use and service planning