Knights of Malta head has 'agreed' to resign after dispute with Vatican