Rory Gallagher’s signature Stratocaster to be donated to national museum after selling for more than €1m at auction