Italy's largest bank by assets, UniCredit, posted a stronger-than-expected net profit in the second quarter of the year thanks to lower costs and a drop in loan-loss charges.