CBA warns on slowing economy even as profit hits record