A handful of the state’s largest banks lost a bigger chunk of their deposits than the national average, according to federal data.