Holographic renormalisation for the spin-3 theory and the (A)dS3/CFT2 correspondence