Berg plans to resign as St. Mary’s baseball coach