A second home ban in the tourist hotspot of St Ives has backfired, according to a new study - and priced locals out of the market.