A man has been rescued after being found clinging to a marine beacon after his boat ran aground on the Sunshine Coast.