17th-century 'David and Goliath' confirmed as work of female artist