Losses where people were tricked into transferring money decreased in the first half of this year, UK Finance said.