Writing and erasure of temporal cavity solitons via intensity modulation of the cavity driving field