Local services secured as Somerset councils agree historic devolution deal