One of Australia's biggest lenders, ANZ, has beaten expectations and posted a half-year cash profit of 3.7bn Australian dollars ($2.9bn;£1.91bn) in the six months ending in March.