Banks record profits despite harsh economic conditions