Gold prices struggle for direction near $1,240-level