Urgent’ action needed to keep UK in gigafactory race, MPs told