Associated random variables and martingale inequalities