An investigation has been launched after a bulk carrier ran aground off a major east coast port, with efforts under way to refloat the vessel.