Rare Harry Potter book bought for £1 sells at auction for £28,500