Fleetwood Town have completed the signing of Blackpool midfielder Barry Ferguson on a three-month loan.