ABN Amro’s quarterly profit beats estimates despite rising costs