Green Dot to buy tax refund unit from Republic Bank for $165M