Red paint has been thrown at a statue of Captain Cook at Randwick in Sydney's eastern suburbs