Community banks improve but struggle to boost profits