Hat's nice: Both Catherine and Michael were seen wearing protective headgear as they made their way from the beach