Group transactions by month