Berkshire Bank is closing four of its branches across Massachusetts, as the bank enhances its online services.