Convergence of Weighted Averages of Martingales in Banach Function Spaces