Crowds pack beaches to escape heat