Massachusetts hospitals are under strain due to shortages of workers to staff beds, workforce burnout and the daily boarding of 500 or more patients who are awaiting behavioral health services.