Landlords who took out a new mortgage between April and June this year made an annual cash loss for the first time since 2007.