Nearly 30 NHS sites in Somerset will have to be significantly upgraded or replaced